<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"  >


    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:link outcome="login.xhtml" value="login" />
            <br></br>
            <h:outputText value="Inscription"></h:outputText>
        </ui:define>
        <ui:define name="body">
            
            

            <h:form>

                <p:growl id="growl" />
                <h:panelGrid >
                    <h:outputLabel value="#{bundle.CreateClientLabel_prenom}" for="prenom" />
                    <h:inputText id="prenom" value="#{inscriptionController.selected.prenom}" title="#{bundle.CreateClientTitle_prenom}" required="true" requiredMessage="#{bundle.CreateClientRequiredMessage_prenom}"/>
                    <h:outputLabel value="#{bundle.CreateClientLabel_adresse}" for="adresse" />
                    <h:inputText id="adresse" value="#{inscriptionController.selected.adresse}" title="#{bundle.CreateClientTitle_adresse}" required="true" requiredMessage="#{bundle.CreateClientRequiredMessage_adresse}"/>
                    <h:outputLabel value="#{bundle.CreateClientLabel_telephone}" for="telephone" />
                    <h:inputText id="telephone" value="#{inscriptionController.selected.telephone}" title="#{bundle.CreateClientTitle_telephone}" required="true" requiredMessage="#{bundle.CreateClientRequiredMessage_telephone}"/>
                    <h:outputLabel value="#{bundle.CreateClientLabel_email}" for="email" />
                    <h:inputText id="email" value="#{inscriptionController.selected.email}" title="#{bundle.CreateClientTitle_email}" required="true" requiredMessage="#{bundle.CreateClientRequiredMessage_email}"/>

                    <h:outputLabel value="User name: " for="login"/>
                    <p:inputText id="login" value="#{inscriptionController.selected1.login}" required="true" requiredMessage="userName is required"/>
                    <h:outputLabel value="Password" for="password"/>
                    <p:password id="password" value="#{inscriptionController.selected1.motDePasse}" label="password" required="true" requiredMessage="password is required"/>
                    <h:outputLabel value="RePassword" for="repassword"/>
                    <p:password id="repassword" value="#{inscriptionController.repassword}" label="repassword" required="true" requiredMessage="rePassword is required"/>

                    <p:commandButton value="s'inscrire" action="#{inscriptionController.create()}" update="growl"/>
                    <br />
                    <h:link outcome="/pages/client/List" value="Show All Client Items"/>
                </h:panelGrid>


            </h:form>
</ui:define>

        
    </ui:composition>

</html>